//
//  NetWorkTool.h
//  chargeAPP
//
//  Created by admin on 2017/4/1.
//  Copyright © 2017年 CarCharge. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@interface NetWorkTool : AFHTTPSessionManager

@property (nonatomic,strong)NSMutableArray *taskArray;

/**
 单例
 */
+ (_Nonnull instancetype)sharedNetworkTool;

/**
 请求网络
 */
- (void)requestWithUrlString:(NSString *_Nullable)urlStr
                      method:(NSString *_Nullable)method
                  parameters:(NSDictionary *_Nullable)parameters
                     progress:(void(^_Nullable)(NSProgress * _Nonnull uploadProgress))progress
                     success:(void(^_Nullable)(id _Nullable responseObject))success
                     failure:(void(^_Nullable)(NSError * _Nonnull error))failure;

@end
